package com.ruoyi.xiaoshou.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 销售退货单对象 finer_sale_back
 *
 * @author lmj
 * @date 2024-10-29
 */
@Data
public class SaleBack extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 销售退货单id
     */
    private Integer id;

    /**
     * 退货单编号
     */
    @Excel(name = "退货单编号")
    private String saleBackCode;

    /**
     * 退货申请单编号
     */
    @Excel(name = "退货申请单编号")
    private String saleBackRequestCode;

    /**
     * 总价
     */
    @Excel(name = "总价")
    private BigDecimal total;

    /**
     * 需付款比率
     */
    @Excel(name = "需付款比率")
    private BigDecimal payCent;

    /**
     * 需付款金额
     */
    @Excel(name = "需付款金额")
    private BigDecimal realMoney;

    /**
     * 实付金额
     */
    @Excel(name = "实付金额")
    private BigDecimal payMoney;

    /**
     * 入库状态（0:等待入库，1:部分入库，2:完全入库）
     */
    @Excel(name = "入库状态", readConverterExp = "0=:等待入库，1:部分入库，2:完全入库")
    private Integer stockStatus;

    /**
     * 付款状态（0:等待付款，1:部分付款，2:完全付款）
     */
    @Excel(name = "付款状态", readConverterExp = "0=:等待付款，1:部分付款，2:完全付款")
    private Integer payStatus;

    /**
     * 审核状态（0:等待审核，1:审核完成）
     */
    @Excel(name = "审核状态", readConverterExp = "0=:等待审核，1:审核完成")
    private Integer status;

    /**
     * 质检状态（0:等待质检，1:质检完成）
     */
    @Excel(name = "质检状态", readConverterExp = "0=:等待质检，1:质检完成")
    private Integer qualitiedStatus;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateDate;

    /**
     * 是否删除(0:未删除 1:删除)
     */
    private Integer isDel;
    @Excel(name = "是否关闭", readConverterExp = "0=:未作废，1:已作废")
    private Integer isClose;
    @Excel(name = "是否关闭", readConverterExp = "0=:未关闭，1:已关闭")
    private Integer isCancel;
    @Excel(name = "总数量")
    private Integer totalNum;
    @Excel(name = "审核人")
    private String passUser;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "生效时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date passDate;
    @Excel(name = "客户名称")
    private String cusName;
    @Excel(name="已入库数量")
    private Integer inNum;
    @Excel(name="不合格数量")
    private Integer noPassNum;
    private Integer cusId;


}
